在线购票选择站点,数据从网络请求获得,线路和站点两个recycleview的设置和联动
This commit is contained in:
parent
93f3c906e8
commit
b49d0532f7
|
@ -41,12 +41,7 @@ public class DaonaTable extends AppCompatActivity {
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_daona_table);
|
||||
// for (int i = 0; i < 6; i++) {
|
||||
// Position position = new Position();
|
||||
// position.name = "军事博物馆采血点"+i;
|
||||
//// position.position="聊天内容";
|
||||
// positionList.add(position);
|
||||
// }
|
||||
|
||||
searchEditText = findViewById(R.id.editText3);
|
||||
recyclerView = findViewById(R.id.recycle);
|
||||
myAdapter = new MyAdapter();
|
||||
|
@ -186,7 +181,7 @@ public class DaonaTable extends AppCompatActivity {
|
|||
// Log.i("test","onClick");
|
||||
//TODO 跳转到新的activity
|
||||
Intent intent = new Intent(DaonaTable.this, SearchLine.class);
|
||||
intent.putExtra("end",position1.name);
|
||||
intent.putExtra("end",dto.name);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
@ -196,7 +191,7 @@ public class DaonaTable extends AppCompatActivity {
|
|||
//item显示条数
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return 6;
|
||||
return destinationDTOS.size();
|
||||
}
|
||||
public void updateStationList(List<LineSearch_Item.DestinationDTO> filteredList) {
|
||||
destinationDTOS.clear();
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
package com.hnucm.c25;
|
||||
|
||||
public class Position {
|
||||
public String name;
|
||||
public String position;
|
||||
}
|
|
@ -4,19 +4,34 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.baidu.mapapi.CoordType;
|
||||
import com.baidu.mapapi.SDKInitializer;
|
||||
import com.baidu.mapapi.map.BaiduMap;
|
||||
import com.baidu.mapapi.map.MapStatusUpdateFactory;
|
||||
import com.baidu.mapapi.map.MapView;
|
||||
import com.baidu.mapapi.map.MarkerOptions;
|
||||
import com.baidu.mapapi.model.LatLng;
|
||||
import com.baidu.mapapi.model.LatLngBounds;
|
||||
import com.baidu.mapapi.search.core.SearchResult;
|
||||
import com.baidu.mapapi.search.geocode.GeoCodeOption;
|
||||
import com.baidu.mapapi.search.geocode.GeoCodeResult;
|
||||
import com.baidu.mapapi.search.geocode.GeoCoder;
|
||||
import com.baidu.mapapi.search.geocode.OnGetGeoCoderResultListener;
|
||||
import com.baidu.mapapi.search.geocode.ReverseGeoCodeResult;
|
||||
|
||||
|
||||
public class SearchLine extends AppCompatActivity {
|
||||
private MapView mMapView = null;
|
||||
private BaiduMap mBaiduMap = null;
|
||||
EditText chuFa ;
|
||||
EditText daoNa;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -35,7 +50,13 @@ public class SearchLine extends AppCompatActivity {
|
|||
// mBaiduMap.setMapType(BaiduMap.MAP_TYPE_SATELLITE);
|
||||
//普通地图 ,mBaiduMap是地图控制器对象
|
||||
mBaiduMap.setMapType(BaiduMap.MAP_TYPE_NORMAL);
|
||||
//todo 接收返回表单传来的值
|
||||
String start = getIntent().getStringExtra("start");
|
||||
//todo 接收到哪表单传来的值
|
||||
String end = getIntent().getStringExtra("end");
|
||||
|
||||
// setUpEditTextWatcher(chuFa, "start");
|
||||
// setUpEditTextWatcher(daoNa, "end");
|
||||
//todo 返回首页
|
||||
ImageView back = findViewById(R.id.imageView13);
|
||||
back.setOnClickListener(new View.OnClickListener() {
|
||||
|
@ -45,8 +66,27 @@ public class SearchLine extends AppCompatActivity {
|
|||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
chuFa = findViewById(R.id.editText6);
|
||||
chuFa.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
if (s.length() == 0 || !isInputComplete(s)) {
|
||||
return;
|
||||
}
|
||||
geocodeAddress(s.toString(), null);
|
||||
}
|
||||
});
|
||||
//todo 出发表单
|
||||
EditText chuFa = findViewById(R.id.editText6);
|
||||
chuFa.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -54,12 +94,10 @@ public class SearchLine extends AppCompatActivity {
|
|||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
//todo 接收返回表单传来的值
|
||||
String start = getIntent().getStringExtra("start");
|
||||
chuFa.setText(start);
|
||||
|
||||
//todo 到哪表单
|
||||
EditText daoNa = findViewById(R.id.finish);
|
||||
daoNa = findViewById(R.id.finish);
|
||||
daoNa.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -67,9 +105,8 @@ public class SearchLine extends AppCompatActivity {
|
|||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
//todo 接收到哪表单传来的值
|
||||
String end = getIntent().getStringExtra("end");
|
||||
daoNa.setText(end);
|
||||
|
||||
}
|
||||
@Override
|
||||
protected void onResume() {
|
||||
|
@ -89,5 +126,65 @@ public class SearchLine extends AppCompatActivity {
|
|||
//在activity执行onDestroy时必须调用mMapView.onDestroy()
|
||||
mMapView.onDestroy();
|
||||
}
|
||||
private boolean isInputComplete(CharSequence input) {
|
||||
return input.length() > 0;
|
||||
}
|
||||
|
||||
private void setUpEditTextWatcher(final EditText et, final String type) {
|
||||
et.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||
// 输入前事件,可不实现
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
// 文本变化事件,可不实现
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
if (s.length() > 0 && isInputComplete(s)) {
|
||||
// 假设输入框内容完整,调用geocodeAddress方法进行地理编码
|
||||
geocodeAddress(s.toString(), type);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private void geocodeAddress(String address, final String type) {
|
||||
if (address == null || address.isEmpty()) {
|
||||
Toast.makeText(this, "请输入有效的地址", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
|
||||
// GeoCoder geoCoder = mBaiduMap.getGeoCoder();
|
||||
// geoCoder.geocode(new GeoCodeOption().cityname("全国").address(address),
|
||||
// new OnGetGeoCoderResultListener() {
|
||||
// @Override
|
||||
// public void onGetResult(GeoCodeResult result) {
|
||||
// if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
|
||||
// Toast.makeText(SearchLine.this, "地理编码失败", Toast.LENGTH_SHORT).show();
|
||||
// return;
|
||||
// }
|
||||
// LatLng latLng = result.getLocation();
|
||||
// clearMapAndAddMarker(latLng, type);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onGetReverseResult(ReverseGeoCodeResult result) {
|
||||
// // 这里不需要处理逆地理编码结果
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
private void clearMapAndAddMarker(LatLng latLng, String type) {
|
||||
mBaiduMap.clear(); // 清除地图上已有的标注
|
||||
MarkerOptions markerOptions = new MarkerOptions()
|
||||
.position(latLng)
|
||||
.title(type.equals("start") ? "起始地点" : "目的地点");
|
||||
mBaiduMap.addOverlay(markerOptions); // 添加新的标注
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
package com.hnucm.c25;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Zhandian_item {
|
||||
|
||||
public List<SubwayLinesDTO> subwayLines;
|
||||
|
||||
public static class SubwayLinesDTO {
|
||||
public String lineName;
|
||||
public List<String> stations;
|
||||
}
|
||||
}
|
|
@ -1,20 +1,56 @@
|
|||
package com.hnucm.c25;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import okhttp3.Call;
|
||||
import okhttp3.Callback;
|
||||
import okhttp3.OkHttpClient;
|
||||
import okhttp3.Request;
|
||||
import okhttp3.Response;
|
||||
|
||||
public class chooseLine extends AppCompatActivity {
|
||||
|
||||
RecyclerView lineRecycle;
|
||||
RecyclerView stationRecycle;
|
||||
MyAdapter myAdapter;
|
||||
StationAdapter stationAdapter;
|
||||
List<Zhandian_item.SubwayLinesDTO> zhandianItems = new ArrayList<>();
|
||||
List<String> staion = new ArrayList<>();
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_choose_line);
|
||||
ImageView back = findViewById(R.id.imageView18);
|
||||
lineRecycle = findViewById(R.id.recyclerView);
|
||||
stationRecycle = findViewById(R.id.stationRecycle);
|
||||
myAdapter = new MyAdapter();
|
||||
lineRecycle.setAdapter(myAdapter);
|
||||
lineRecycle.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
||||
stationAdapter=new StationAdapter();
|
||||
stationRecycle.setAdapter(stationAdapter);
|
||||
stationRecycle.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
||||
//todo 返回在线购票
|
||||
back.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
@ -32,5 +68,123 @@ public class chooseLine extends AppCompatActivity {
|
|||
shuru.setText("");
|
||||
}
|
||||
});
|
||||
Request request = new Request.Builder()
|
||||
.url("https://test04.usemock.com/chooseLine")
|
||||
.get()
|
||||
.build();
|
||||
OkHttpClient okHttpClient = new OkHttpClient();
|
||||
Call call = okHttpClient.newCall(request);
|
||||
//创建了一个线程
|
||||
call.enqueue(new Callback() {
|
||||
@Override
|
||||
public void onFailure(@NonNull Call call, @NonNull IOException e) {
|
||||
//请求失败
|
||||
Toast.makeText(chooseLine.this, "网络请求失败,请稍后重试", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {
|
||||
//请求成功
|
||||
String result = response.body().string();
|
||||
// Log.i("test",result);
|
||||
//所有对于UI控件的操作行为放在主线程中 解决方法:切换到主线程
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
Gson gson = new Gson();
|
||||
Zhandian_item zhandianItem = gson.fromJson(result, Zhandian_item.class);
|
||||
zhandianItems.addAll(zhandianItem.subwayLines);
|
||||
List<String> stations = zhandianItems.get(0).stations;
|
||||
staion.addAll(stations);
|
||||
myAdapter.notifyDataSetChanged();
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public class MyViewHolder extends RecyclerView.ViewHolder {
|
||||
TextView lineName;
|
||||
|
||||
public MyViewHolder(@NonNull View itemView) {
|
||||
super(itemView);
|
||||
lineName = itemView.findViewById(R.id.textView50);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class MyAdapter extends RecyclerView.Adapter<MyViewHolder> {
|
||||
|
||||
|
||||
//加载item布局文件
|
||||
@NonNull
|
||||
@Override
|
||||
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
View view = LayoutInflater.from(chooseLine.this).inflate(R.layout.zhandian_item_layout, parent, false);
|
||||
return new MyViewHolder(view);
|
||||
}
|
||||
|
||||
//设置item中的控件设置值 点击事件
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
|
||||
String lineName = zhandianItems.get(position).lineName;
|
||||
holder.lineName.setText(lineName);
|
||||
// holder.itemView.setBackgroundColor(Color.WHITE);
|
||||
//TODO 点击事件
|
||||
holder.itemView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
List<String> stations = zhandianItems.get(position).stations;
|
||||
staion.clear();
|
||||
staion.addAll(stations);
|
||||
stationAdapter.notifyDataSetChanged();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//item显示条数
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return zhandianItems.size();
|
||||
}
|
||||
|
||||
}
|
||||
public class StationAdapter extends RecyclerView.Adapter<StationAdapter.StationViewHolder> {
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public StationViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
View view = LayoutInflater.from(chooseLine.this).inflate(R.layout.zhandianming_item_layout, parent, false);
|
||||
return new StationViewHolder(view);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull StationViewHolder holder, int position) {
|
||||
String stationName = staion.get(position);
|
||||
holder.stationName.setText(stationName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return staion.size();
|
||||
}
|
||||
|
||||
public class StationViewHolder extends RecyclerView.ViewHolder {
|
||||
TextView stationName;
|
||||
|
||||
public StationViewHolder(@NonNull View itemView) {
|
||||
super(itemView);
|
||||
stationName = itemView.findViewById(R.id.textView51);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18,6 +18,7 @@
|
|||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/constraintLayout33"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -63,8 +64,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="线路"
|
||||
android:textStyle="bold"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="@+id/imageView18"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView18" />
|
||||
|
||||
|
@ -74,8 +75,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="150dp"
|
||||
android:text="站点"
|
||||
android:textStyle="bold"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView46"
|
||||
app:layout_constraintStart_toEndOf="@+id/textView46"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView46" />
|
||||
|
@ -96,466 +97,34 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:text="排序"
|
||||
android:textStyle="bold"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView47"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView47" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="275dp"
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="100dp"
|
||||
android:layout_marginBottom="60dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/constraintLayout14"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:background="#DFDBDB"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/stationRecycle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="120dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:layout_marginBottom="60dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView77"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="苹果园" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView78"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="古城" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView79"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="八角游乐园" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView80"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="八宝山" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView81"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="玉泉路" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView82"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="五棵松" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView83"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="万寿路" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView84"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="公主坟" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView85"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="军事博物馆" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView86"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="南里土路" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView87"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="复兴门" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView88"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="西单" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView89"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="天安门西" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView90"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="天安门东" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView91"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="西门" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView92"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="建国门" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView93"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="王府井" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView94"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#4B4B5C"
|
||||
android:text="国贸" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="135dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="100dp"
|
||||
android:layout_marginBottom="60dp"
|
||||
android:fillViewport="true"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:background="#F3F3F3"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView50"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="1号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView51"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="2号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView52"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="3号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView53"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="4号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView54"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="5号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView55"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="6号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView56"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="7号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView57"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="8号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView58"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="9号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView59"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="10号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView60"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="11号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView61"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="12号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView62"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="13号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView63"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="14号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView64"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="15号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView65"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="16号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView66"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="17号线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView67"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="17号线(东)" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView68"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="17号线(西)" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView69"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="机场线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView70"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="房山线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView71"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="昌平线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView72"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="亦庄线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView73"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="S1线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView74"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="燕芳线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView75"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="八通线" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView76"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="17sp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="S2线" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
app:layout_constraintStart_toEndOf="@+id/recyclerView"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -6,17 +6,7 @@
|
|||
android:layout_height="match_parent"
|
||||
tools:context=".ChufaTable">
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/textView155"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginStart="8dp"-->
|
||||
<!-- android:background="#ECECEC"-->
|
||||
<!-- android:text="14号线"-->
|
||||
<!-- android:textColor="#9B9B9B"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="@+id/textView154"-->
|
||||
<!-- app:layout_constraintStart_toEndOf="@+id/textView154"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="@+id/textView154" />-->
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView18"
|
||||
|
@ -53,48 +43,6 @@
|
|||
app:layout_constraintTop_toTopOf="@+id/editText3"
|
||||
app:srcCompat="@drawable/delete" />
|
||||
|
||||
<!-- <ImageView-->
|
||||
<!-- android:id="@+id/imageView41"-->
|
||||
<!-- android:layout_width="40dp"-->
|
||||
<!-- android:layout_height="40dp"-->
|
||||
<!-- android:layout_marginStart="16dp"-->
|
||||
<!-- app:layout_constraintBottom_toTopOf="@+id/textView152"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@+id/textView149"-->
|
||||
<!-- app:srcCompat="@drawable/train" />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/textView150"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginStart="24dp"-->
|
||||
<!-- android:layout_marginBottom="8dp"-->
|
||||
<!-- android:text="大望路(地铁站)"-->
|
||||
<!-- android:textSize="16sp"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- app:layout_constraintBottom_toTopOf="@+id/textView154"-->
|
||||
<!-- app:layout_constraintStart_toEndOf="@+id/imageView41" />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/textView152"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="1dp"-->
|
||||
<!-- android:layout_marginTop="100dp"-->
|
||||
<!-- android:background="#F3F3F3"-->
|
||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@+id/textView149" />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/textView154"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginBottom="24dp"-->
|
||||
<!-- android:background="#ECECEC"-->
|
||||
<!-- android:text="1号线"-->
|
||||
<!-- android:textColor="#9B9B9B"-->
|
||||
<!-- app:layout_constraintBottom_toTopOf="@+id/textView152"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="@+id/textView150" />-->
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycle"
|
||||
|
|
|
@ -5,17 +5,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".DaonaTable">
|
||||
<TextView
|
||||
android:id="@+id/textView155"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:background="#ECECEC"
|
||||
android:text="14号线"
|
||||
android:textColor="#9B9B9B"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView154"
|
||||
app:layout_constraintStart_toEndOf="@+id/textView154"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView154" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView18"
|
||||
|
@ -34,74 +24,35 @@
|
|||
android:layout_marginStart="60dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:background="@drawable/edit_background"
|
||||
android:text="军事博物馆"
|
||||
android:hint="到哪去"
|
||||
android:textColor="@color/black"
|
||||
android:paddingLeft="8dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/imageView18"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView18"
|
||||
app:layout_constraintTop_toTopOf="@+id/imageView18" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView149"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="#F3F3F3"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editText3" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView41"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="16dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView152"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView149"
|
||||
app:srcCompat="@drawable/train" />
|
||||
android:id="@+id/imageView138"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginRight="32dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/editText3"
|
||||
app:layout_constraintRight_toRightOf="@id/editText3"
|
||||
app:layout_constraintTop_toTopOf="@+id/editText3"
|
||||
app:srcCompat="@drawable/delete" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView150"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="军事博物馆(地铁站)"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView154"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView41" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView152"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:background="#F3F3F3"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView149" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView154"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:background="#ECECEC"
|
||||
android:text="1号线"
|
||||
android:textColor="#9B9B9B"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView152"
|
||||
app:layout_constraintStart_toStartOf="@+id/textView150" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="173dp"
|
||||
android:layout_marginTop="65dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView152"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -89,19 +89,6 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/finish"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="64dp"
|
||||
android:layout_marginEnd="64dp"
|
||||
android:hint="要去哪里"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editText6">
|
||||
|
||||
</EditText>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editText6"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -116,6 +103,18 @@
|
|||
|
||||
</EditText>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/finish"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="64dp"
|
||||
android:layout_marginEnd="64dp"
|
||||
android:hint="要去哪里"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editText6">
|
||||
|
||||
</EditText>
|
||||
<ImageView
|
||||
android:id="@+id/imageView23"
|
||||
android:layout_width="30dp"
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="#DFDBDB">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView50"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:text="TextView"
|
||||
android:textSize="17sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView51"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="64dp"
|
||||
android:text="TextView"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue