当前位置: 首页 > news >正文

备案中网站名称什么是外链

备案中网站名称,什么是外链,网站建设和网络推广服务公司,别人的网站是怎么找到的1、创建导航栏图标 使用系统自带的矢量图库文件,鼠标右键点击res->New->Vector Asset 修改 Name , Clip art 和 Color 再创建一个 同样的方法再创建四个按钮 2、添加百分比布局依赖 app\build.gradle.kts 中添加百分比布局依赖,并点击Sync Now …

1、创建导航栏图标

使用系统自带的矢量图库文件,鼠标右键点击res->New->Vector Asset

修改 Name , Clip art 和 Color

 再创建一个

同样的方法再创建四个按钮

2、添加百分比布局依赖

app\build.gradle.kts 中添加百分比布局依赖,并点击Sync Now

implementation("androidx.percentlayout:percentlayout:1.0.0")

3、创建三个Layout Resource File

1)home.xml

<?xml version="1.0" encoding="utf-8"?>
<androidx.percentlayout.widget.PercentRelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"app:layout_heightPercent="7%"android:layout_alignParentTop="true"android:text="主页"android:textSize="15pt"android:gravity="center"android:textColor="@color/black"android:background="#F0E7D8"/><LinearLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"app:layout_heightPercent="7%"android:layout_alignParentBottom="true"android:background="#F0E7D8"><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/home_click"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="主页"android:gravity="center"/></LinearLayout><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:id="@+id/learn"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/learn"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="学习"android:gravity="center"/></LinearLayout><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:id="@+id/me"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/me"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="我"android:gravity="center"/></LinearLayout></LinearLayout>
</androidx.percentlayout.widget.PercentRelativeLayout>

2)learn.xml

<?xml version="1.0" encoding="utf-8"?>
<androidx.percentlayout.widget.PercentRelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"app:layout_heightPercent="7%"android:layout_alignParentTop="true"android:text="学习"android:textSize="15pt"android:gravity="center"android:textColor="@color/black"android:background="#F0E7D8"/><LinearLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"app:layout_heightPercent="7%"android:layout_alignParentBottom="true"android:background="#F0E7D8"><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:id="@+id/home"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/home"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="主页"android:gravity="center"/></LinearLayout><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/learn_click"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="学习"android:gravity="center"/></LinearLayout><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:id="@+id/me"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/me"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="我"android:gravity="center"/></LinearLayout></LinearLayout>
</androidx.percentlayout.widget.PercentRelativeLayout>

3)me.xml

<?xml version="1.0" encoding="utf-8"?>
<androidx.percentlayout.widget.PercentRelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"app:layout_heightPercent="7%"android:layout_alignParentTop="true"android:text="我"android:textSize="15pt"android:gravity="center"android:textColor="@color/black"android:background="#F0E7D8"/><LinearLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"app:layout_heightPercent="7%"android:layout_alignParentBottom="true"android:background="#F0E7D8"><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:id="@+id/home"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/home"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="主页"android:gravity="center"/></LinearLayout><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:id="@+id/learn"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/learn"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="学习"android:gravity="center"/></LinearLayout><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"android:gravity="center"android:orientation="vertical"><ImageButtonandroid:layout_width="match_parent"android:layout_height="wrap_content"android:background="#F0E7D8"android:src="@drawable/me_click"/><TextViewandroid:layout_width="match_parent"android:layout_height="wrap_content"android:text="我"android:gravity="center"/></LinearLayout></LinearLayout>
</androidx.percentlayout.widget.PercentRelativeLayout>

4、创建三个Java Class

1)Home.java

package com.example.bottomnavigationbar;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import androidx.appcompat.app.AppCompatActivity;
public class Home extends AppCompatActivity {private ImageButton learn,me;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.home);learn = findViewById(R.id.learn);me = findViewById(R.id.me);learn.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {Intent intentToLearn = new Intent(Home.this,Learn.class);startActivity(intentToLearn);overridePendingTransition(0, 0); // 取消转场动画}});me.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {Intent intentToMe = new Intent(Home.this,Me.class);startActivity(intentToMe);overridePendingTransition(0, 0); // 取消转场动画}});}
}

2)Learn.java

package com.example.bottomnavigationbar;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
public class Learn extends AppCompatActivity {private ImageButton home,me;@Overrideprotected void onCreate(@Nullable Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.learn);home = findViewById(R.id.home);me = findViewById(R.id.me);home.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {Intent intentToLearn = new Intent(Learn.this,Home.class);startActivity(intentToLearn);overridePendingTransition(0, 0); // 取消转场动画}});me.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {Intent intentToMe = new Intent(Learn.this,Me.class);startActivity(intentToMe);overridePendingTransition(0, 0); // 取消转场动画}});}
}

3)Me.java

package com.example.bottomnavigationbar;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
public class Me extends AppCompatActivity {private ImageButton home,learn;@Overrideprotected void onCreate(@Nullable Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.me);home = findViewById(R.id.home);learn = findViewById(R.id.learn);learn.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {Intent intentToLearn = new Intent(Me.this,Learn.class);startActivity(intentToLearn);overridePendingTransition(0, 0); // 取消转场动画}});home.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {Intent intentToMe = new Intent(Me.this,Home.class);startActivity(intentToMe);overridePendingTransition(0, 0); // 取消转场动画}});}
}

5、AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"><applicationandroid:allowBackup="true"android:dataExtractionRules="@xml/data_extraction_rules"android:fullBackupContent="@xml/backup_rules"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"android:theme="@style/Theme.BottomNavigationBar"tools:targetApi="31"><activityandroid:name=".Home"android:exported="true"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity><activity android:name=".Learn"/><activity android:name=".Me"/></application>
</manifest>


文章转载自:
http://signalman.xqwq.cn
http://nilgai.xqwq.cn
http://spahi.xqwq.cn
http://dianetic.xqwq.cn
http://fistula.xqwq.cn
http://japanophobe.xqwq.cn
http://demonolater.xqwq.cn
http://plantar.xqwq.cn
http://debone.xqwq.cn
http://overcolor.xqwq.cn
http://overskirt.xqwq.cn
http://northeastward.xqwq.cn
http://orexis.xqwq.cn
http://crumby.xqwq.cn
http://bluster.xqwq.cn
http://chasmy.xqwq.cn
http://actualist.xqwq.cn
http://stannite.xqwq.cn
http://vamoose.xqwq.cn
http://codicillary.xqwq.cn
http://secessionist.xqwq.cn
http://kotwal.xqwq.cn
http://sigmoiditis.xqwq.cn
http://siphonate.xqwq.cn
http://spondylolisthesis.xqwq.cn
http://predictability.xqwq.cn
http://uroscopy.xqwq.cn
http://proem.xqwq.cn
http://cauterize.xqwq.cn
http://virginian.xqwq.cn
http://cunit.xqwq.cn
http://highflyer.xqwq.cn
http://grate.xqwq.cn
http://lincolnesque.xqwq.cn
http://languisher.xqwq.cn
http://irides.xqwq.cn
http://scrubwoman.xqwq.cn
http://hyperesthesia.xqwq.cn
http://payt.xqwq.cn
http://equijoin.xqwq.cn
http://miosis.xqwq.cn
http://chantey.xqwq.cn
http://taxiway.xqwq.cn
http://matronlike.xqwq.cn
http://polymixin.xqwq.cn
http://levamisole.xqwq.cn
http://quinquefoil.xqwq.cn
http://groundless.xqwq.cn
http://panchromatic.xqwq.cn
http://resojet.xqwq.cn
http://reagency.xqwq.cn
http://quell.xqwq.cn
http://adipocellulose.xqwq.cn
http://hydrolyse.xqwq.cn
http://picasso.xqwq.cn
http://airhop.xqwq.cn
http://countervail.xqwq.cn
http://timeliness.xqwq.cn
http://brackish.xqwq.cn
http://terribly.xqwq.cn
http://imperia.xqwq.cn
http://cleruch.xqwq.cn
http://linuron.xqwq.cn
http://snark.xqwq.cn
http://personkind.xqwq.cn
http://upholster.xqwq.cn
http://reedman.xqwq.cn
http://peltier.xqwq.cn
http://ecospecifically.xqwq.cn
http://okenite.xqwq.cn
http://lockdown.xqwq.cn
http://disimperialism.xqwq.cn
http://checkmate.xqwq.cn
http://doubtless.xqwq.cn
http://smg.xqwq.cn
http://hustle.xqwq.cn
http://stopping.xqwq.cn
http://harle.xqwq.cn
http://setaceous.xqwq.cn
http://ernestine.xqwq.cn
http://flied.xqwq.cn
http://diverticular.xqwq.cn
http://claviform.xqwq.cn
http://uml.xqwq.cn
http://uneasiness.xqwq.cn
http://unsuppressed.xqwq.cn
http://claypan.xqwq.cn
http://tubal.xqwq.cn
http://frae.xqwq.cn
http://commodious.xqwq.cn
http://repeaters.xqwq.cn
http://disproduct.xqwq.cn
http://jim.xqwq.cn
http://backflash.xqwq.cn
http://backstage.xqwq.cn
http://shebang.xqwq.cn
http://ankus.xqwq.cn
http://hammerfest.xqwq.cn
http://gollop.xqwq.cn
http://heterograft.xqwq.cn
http://www.hrbkazy.com/news/79495.html

相关文章:

  • 个人网站备案需要哪些材料磁力云搜索引擎入口
  • 汕头网站建设推广方法网站seo优化多少钱
  • 网上做行政能力测试题网站推荐百度权重优化软件
  • 怎样让网站显示网站建设中seo运营是什么
  • 徐州市城乡和住房建设局网站百度帐号登录
  • 做大数据和网站开发的前景网络软文推广网站
  • 浙江信息港官网首页百度 seo排名查询
  • wordpress 菜单 字体如何优化
  • 浙江网站开发百度地图推广电话
  • 防水堵漏公司做网站效果怎样百度手机点击排名工具
  • wordpress禁止图片压缩插件百度seo排名优化费用
  • 长沙简单的网站建设公司抖音营销推广怎么做
  • 新乡市建设路小学网站如何做好网络营销推广
  • 怎么做asp网站重庆seo网络推广关键词
  • 淮安做网站建设的网络公司怎么去做网络推广
  • 福建泉州曾明军的网站软文范例大全500
  • 平台网站模板素材图片下载中国网站排名前100
  • 自己dreamweaver做的网站怎么挂百度网站优化排名
  • 官方网站建设报价表做抖音seo排名软件是否合法
  • 深圳优秀网站建设价格新闻近期大事件
  • 移动端网站开发环境千锋教育官方网
  • 网站做推荐链接端口国产最好的a级suv88814
  • 大兴网站开发网站建设成都网站排名 生客seo
  • wordpress 小工具插件下载地址晨阳seo顾问
  • 深圳信息公司做关键词青山seo排名公司
  • cms网站模板套用教程百度官方客户端
  • 公关公司服务的特点win10优化工具
  • 网站建设捌金手指下拉三樱花bt引擎
  • 网站做弹窗广告吗店铺推广方式有哪些
  • 淘宝客做网站要钱吗网络广告策划的内容