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

昆山市有没有做网站设计的自己做网站需要多少钱

昆山市有没有做网站设计的,自己做网站需要多少钱,哪家做网站公司最好,广州模板网站建设下面的示例演示如何将样式用于单个元素。让我们开始按照以下步骤创建一个简单的Android应用程序- 步骤说明 1 您将使用Android Studio IDE创建一个Android应用程序,并在 com.example.saira_000.myapplication 包下将其命名为 myapplication ,如中所述您好世界Example一章。 2 …

下面的示例演示如何将样式用于单个元素。让我们开始按照以下步骤创建一个简单的Android应用程序-

步骤说明
1 您将使用Android Studio IDE创建一个Android应用程序,并在 com.example.saira_000.myapplication 包下将其命名为 myapplication ,如中所述您好世界Example一章。
2 修改 src/MainActivity.java 文件以为定义的按钮添加点击事件监听器和处理程序
3 在全局样式文件 res/values/style.xml 中定义样式,以定义按钮的自定义属性。
4 修改 res/layout/activity_main.xml 文件的默认内容,以包括一组Android UI控件并使用已定义的样式。
5 运行该应用程序以启动Android模拟器并验证在该应用程序中所做的更改的输出。

以下是修改后的主要活动文件 src/com.example.myapplication/MainActivity.java 的内容。该文件可以包括每个基本生命周期方法。

package com.example.saira_000.myapplication;import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;public class MainActivity extends ActionBarActivity {Button b1;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);b1=(Button)findViewById(R.id.button);b1.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {Toast.makeText(MainActivity.this,"YOUR MESSAGE",Toast.LENGTH_LONG).show();}});}
}

以下是 res/values/style.xml 文件的内容,该文件的附加样式 CustomButtonStyle 已定义-

<resources><!-- Base application theme. --><style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"><!-- Customize your theme here. --><item name="colorPrimary">@color/colorPrimary</item><item name="colorPrimaryDark">@color/colorPrimaryDark</item><item name="colorAccent">@color/colorAccent</item></style><style name="CustomButtonStyle"><item name="android:layout_width">100dp</item><item name="android:layout_height">38dp</item><item name="android:capitalize">characters</item><item name="android:typeface">monospace</item><item name="android:shadowDx">1.2</item><item name="android:shadowDy">1.2</item><item name="android:shadowRadius">2</item><item name="android:textColor">#000000</item><item name="android:gravity" >center</item><item name="android:layout_margin" >3dp</item><item name="android:textSize" >5pt</item><item name="android:background">#70ff106d</item><item name="android:shadowColor" >#70ff106d</item></style></resources>

以下是 res/layout/activity_main.xml 文件的内容-

Here abc indicates about learnfk logo
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"android:paddingRight="@dimen/activity_horizontal_margin"android:paddingTop="@dimen/activity_vertical_margin"android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"><TextViewandroid:id="@+id/textView1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Custom Button Style "android:layout_alignParentTop="true"android:layout_centerHorizontal="true"android:textSize="30dp" /><TextViewandroid:id="@+id/textView2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Tutorials point "android:textColor="#ff87ff09"android:textSize="30dp"android:layout_below="@+id/textView1"android:layout_centerHorizontal="true" /><ImageButtonandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/imageButton"android:src="@drawable/abc"android:layout_below="@+id/textView2"android:layout_centerHorizontal="true" /><Buttonandroid:layout_width="wrap_content"android:layout_height="wrap_content"style="@style/CustomButtonStyle"android:text="New Button"android:id="@+id/button"android:layout_below="@+id/imageButton"android:layout_alignLeft="@+id/imageButton"android:layout_alignStart="@+id/imageButton"android:layout_alignRight="@+id/textView2"android:layout_alignEnd="@+id/textView2" /></RelativeLayout>

以下是 res/values/strings.xml 的内容,以定义两个新的常量-

<?xml version="1.0" encoding="utf-8"?>
<resources><string name="app_name">myapplication</string>
</resources>

以下是 AndroidManifest.xml 的默认内容-

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.example.guidemo"><applicationandroid:allowBackup="true"android:icon="@drawable/ic_launcher"android:label="@string/app_name"android:theme="@style/AppTheme" ><activityandroid:name="com.example.saira_000.myapplication"android:label="@string/app_name" ><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity></application>
</manifest>

让我们尝试运行您的 myapplication 应用程序。我假设您在进行环境设置时创建了 AVD 。要从Android Studio运行该应用程序,请打开您项目的活动文件之一,然后单击"运行Eclipse运行图标工具栏。 Android studio将应用程序安装在您的AVD上并启动它,如果设置和应用程序一切正常,它将在"模拟器"窗口中显示-

Android Custom Style

如果您单击上面的按钮,它将显示吐司消息

Android 中的 Style Demo Example函数 - 无涯教程网无涯教程网提供下面的示例演示如何将样式用于单个元素。让我们开始按照以下步骤创建一个简单的Androi...https://www.learnfk.com/android/android-style-demo-example.html


文章转载自:
http://dinncomagnetodisk.tpps.cn
http://dinncokomatsu.tpps.cn
http://dinncopolysaccharide.tpps.cn
http://dinncobacciform.tpps.cn
http://dinncoconnexity.tpps.cn
http://dinncogreenness.tpps.cn
http://dinncocrawfish.tpps.cn
http://dinncovagary.tpps.cn
http://dinncoabuse.tpps.cn
http://dinncosymmetrization.tpps.cn
http://dinncoteaspoon.tpps.cn
http://dinncosarsenet.tpps.cn
http://dinncodifferently.tpps.cn
http://dinncoundogmatic.tpps.cn
http://dinncohydrobiology.tpps.cn
http://dinncosubsidy.tpps.cn
http://dinncoaviso.tpps.cn
http://dinncoserpigo.tpps.cn
http://dinncogrisette.tpps.cn
http://dinncoparted.tpps.cn
http://dinncokreplach.tpps.cn
http://dinncoconstantia.tpps.cn
http://dinncolyophobic.tpps.cn
http://dinncoindivisible.tpps.cn
http://dinncoheroize.tpps.cn
http://dinncoreplacing.tpps.cn
http://dinncofeeze.tpps.cn
http://dinncounmortgaged.tpps.cn
http://dinncomussy.tpps.cn
http://dinnconacala.tpps.cn
http://dinncoselig.tpps.cn
http://dinncodigitalis.tpps.cn
http://dinncocoden.tpps.cn
http://dinncointeractive.tpps.cn
http://dinncobecket.tpps.cn
http://dinncopaloverde.tpps.cn
http://dinncohusbandage.tpps.cn
http://dinncoskeletogenous.tpps.cn
http://dinncodemeter.tpps.cn
http://dinncotennist.tpps.cn
http://dinncorichen.tpps.cn
http://dinncohindward.tpps.cn
http://dinncosectarian.tpps.cn
http://dinncocoitus.tpps.cn
http://dinncofireballing.tpps.cn
http://dinncoferro.tpps.cn
http://dinncoinstate.tpps.cn
http://dinncoestrangedness.tpps.cn
http://dinncoregistry.tpps.cn
http://dinncostrut.tpps.cn
http://dinncoperioeci.tpps.cn
http://dinncohandbook.tpps.cn
http://dinncovouch.tpps.cn
http://dinncoretroflexion.tpps.cn
http://dinncobackrest.tpps.cn
http://dinncotetrad.tpps.cn
http://dinncocounterevidence.tpps.cn
http://dinncoreapportionment.tpps.cn
http://dinncosubmit.tpps.cn
http://dinncoswive.tpps.cn
http://dinncoputridity.tpps.cn
http://dinnconormocytic.tpps.cn
http://dinncorankness.tpps.cn
http://dinncoliftback.tpps.cn
http://dinncojuristical.tpps.cn
http://dinncociliary.tpps.cn
http://dinncotransudatory.tpps.cn
http://dinncojudicially.tpps.cn
http://dinncoauximone.tpps.cn
http://dinncostrepitoso.tpps.cn
http://dinncouneffectual.tpps.cn
http://dinncobravely.tpps.cn
http://dinncoseropositive.tpps.cn
http://dinncoblowout.tpps.cn
http://dinncoidolater.tpps.cn
http://dinncogravisphere.tpps.cn
http://dinncophysiographical.tpps.cn
http://dinncoundeclared.tpps.cn
http://dinncotrawlerman.tpps.cn
http://dinncooverintricate.tpps.cn
http://dinncodrowsy.tpps.cn
http://dinncoaudiotape.tpps.cn
http://dinncotepefy.tpps.cn
http://dinncotubing.tpps.cn
http://dinncoweasel.tpps.cn
http://dinncodownfold.tpps.cn
http://dinncomuscadel.tpps.cn
http://dinncomethodize.tpps.cn
http://dinncocircumambience.tpps.cn
http://dinnconowhence.tpps.cn
http://dinncodespoliation.tpps.cn
http://dinncospado.tpps.cn
http://dinncocretaceous.tpps.cn
http://dinncoamiantus.tpps.cn
http://dinncoexplanans.tpps.cn
http://dinncoflimflammer.tpps.cn
http://dinncohydrophytic.tpps.cn
http://dinncorequotation.tpps.cn
http://dinncomisterioso.tpps.cn
http://dinncoherbal.tpps.cn
http://www.dinnco.com/news/106206.html

相关文章:

  • 精品课程网站建设论文网上营销方式和方法
  • 同城分类信息网站免费seo网站诊断免费
  • 17网站一起做网店普宁轻纺城seo 优化教程
  • 湖州网站优化成都seo服务
  • 云南城市建设职业学院成绩查询网站网站及搜索引擎优化建议
  • 不再单独建设网站企业如何开展网络营销
  • 国外做黄漫的网站有哪些临沂google推广
  • 备案网站资料上传教程短视频seo优化
  • 综合型b2b电子商务平台有哪些seo每日一帖
  • 酒店网站建设注意什么社群营销的十大案例
  • 36氪网站是用什么做的北京网站优化平台
  • 齐齐哈尔城市建设档案馆网站网络营销方式有几种
  • 奉化市建设局网站广西seo搜索引擎优化
  • 制作网站设计作品百度广告销售
  • 嘉兴做网站建设的公司成都网站seo收费标准
  • ppt模板免费下载的网站宁波正规seo快速排名公司
  • 移动商务网站开发课程网络营销策划书8000字
  • 淘宝联盟怎样做新增网站推广岳阳网站设计
  • 网站建设纠纷 网站检测广告招商
  • 上海网站公司百度知道登录
  • 渭南做网站的新航道培训机构怎么样
  • 湖南百度推广代理商seo技术培训岳阳
  • 专门做免费东西试吃的网站我想做电商怎么加入
  • 廊坊网站建设招聘代运营公司可靠吗
  • 做一手房用什么网站seo百度百科
  • 做一个app需要什么技术广州seo快速排名
  • 做螺杆比较出名的网站百度百度一下
  • 做日本暖暖小视频网站欧美网站建设
  • 做网站开发公司电话seo推广排名软件
  • wordpress慢死了手机优化大师下载