知è˜(shÃ)
ä¸ç®¡æ˜¯ç¶²(wÇŽng)站,軟件還是å°ç¨‹åºï¼Œéƒ½è¦ç›´æŽ¥æˆ–間接能為您產(chÇŽn)生價(jià )值,我們在追求其視覺表ç¾(xià n)çš„åŒæ™‚(shÃ),更å´(cè)é‡äºŽåŠŸèƒ½çš„ä¾¿æ·ï¼Œç‡ŸéŠ·çš„ä¾¿åˆ©ï¼Œé‹(yùn)營的高效,讓網(wÇŽng)ç«™æˆç‚ºç‡ŸéŠ·å·¥å…·ï¼Œè®“è»Ÿä»¶èƒ½åˆ‡å¯¦(shÃ)æå‡ä¼æ¥(yè)å…§(nèi)éƒ¨ç®¡ç†æ°´å¹³å’Œæ•ˆçŽ‡ã€‚å„ª(yÅu)秀的程åº?yà n)楹笃è°î¥å£§å³â”憬莸闹С郑?
您當(dÄng)å‰ä½ç½®>é¦–é » æ–°èžè³‡è¨Š » 技術(shù)分享 >
定制自動(dòng)é–‹é—œ(guÄn)機(jÄ«)è¨(shè)置界é¢
發(fÄ)表時(shÃ)間:2021-1-4
發(fÄ)布人:葵宇科技
ç€è¦½æ¬¡æ•¸(shù):75
差分包:
--- a/idh.code/packages/apps/Settings/res/layout/alarm_time.xml +++ b/idh.code/packages/apps/Settings/res/layout/alarm_time.xml @@ -2,19 +2,35 @@ <!-- Create by Spreadst --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:paddingLeft="5dip" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> - - <TextView android:id="@+id/poweronoff" + + <ImageView android:id="@+id/power_on_off" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:textColor="?android:attr/textColorPrimary" - android:paddingTop="20dip" - android:paddingLeft="10dip" - android:paddingRight="10dip" - android:textAppearance="?android:attr/textAppearanceMedium"/> + android:layout_height="match_parent"/> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingTop="10dip" + android:paddingLeft="10dip" + android:paddingRight="10dip" + android:layout_weight="1"> + <TextView android:id="@+id/time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="?android:attr/textColorPrimary" + android:textSize="24dip" + android:textAppearance="?android:attr/textAppearanceMedium"/> + <TextView android:id="@+id/dayweek" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="14dip" + android:textColor="?android:attr/textColorPrimary"/> + </LinearLayout> <!-- Modify at 2013-02-01 , for fix bug 123733 start --> <!-- android:background="@drawable/clock_selector" --> <!-- Modify at 2013-02-01 , for fix bug 123733 end --> diff --git a/idh.code/packages/apps/Settings/src/com/sprd/settings/timerpower/AlarmClock.java b/idh.code/packages/apps/Settings/src/com old mode 100644 new mode 100755 index 9c4ddf5..7d16157 --- a/idh.code/packages/apps/Settings/src/com/sprd/settings/timerpower/AlarmClock.java +++ b/idh.code/packages/apps/Settings/src/com/sprd/settings/timerpower/AlarmClock.java @@ -23,7 +23,6 @@ import android.widget.AdapterView.OnItemClickListener; import com.android.settings.R; import com.android.settings.Settings; - /** * Power ON/OFF application. */ @@ -61,7 +60,7 @@ public class AlarmClock extends Activity implements OnItemClickListener { public void bindView(View view, Context context, Cursor cursor) { final Alarm alarm = new Alarm(AlarmClock.this,cursor); - + SetAlarm sAlarm = new SetAlarm(); View indicator = view.findViewById(R.id.indicator); // Set the initial state of the clock "checkbox" @@ -78,15 +77,19 @@ public class AlarmClock extends Activity implements OnItemClickListener { } }); Log.v("timerpower AlarmClock -------------------- >>>>>>>>>>>>>>> "+alarm.label); - final TextView powerOnOff = (TextView)view.findViewById(R.id.poweronoff); + + final ImageView iPowerOnOff = (ImageView)view.findViewById(R.id.power_on_off); + final TextView tTime = (TextView)view.findViewById(R.id.time); + final TextView tDayWeek = (TextView)view.findViewById(R.id.dayweek); if(!alarm.label.equals("") && alarm.label.equals("on")) { - powerOnOff.setText(R.string.power_on); + iPowerOnOff.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_settings_pwron)); }else { - powerOnOff.setText(R.string.power_off); + iPowerOnOff.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_settings_pwroff)); } - + tTime.setText(Alarms.formatTime(context, alarm.hour, alarm.minutes,alarm.daysOfWeek)); + tDayWeek.setText(alarm.daysOfWeek.toString(context, false)); } };
修改åŽå¦‚圖:
[img]http://img.blog.csdn.net/20150107100217995?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvc2lsZW5jZV9jZHNu/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
相關(guÄn)案例查看更多
相關(guÄn)閱讀
- å ±(bà o)廢車拆解回收管ç†ç³»çµ±(tÇ’ng)
- 云å—軟件開發(fÄ)
- 昆明網(wÇŽng)ç«™è¨(shè)計(jì)
- 云å—ç¶²(wÇŽng)站建è¨(shè) ç¶²(wÇŽng)絡(luò)æœå‹™(wù)
- å°ç¨‹åºå¯†é‘°
- äº‘å—æ—…游網(wÇŽng)站建è¨(shè)
- å°ç¨‹åºé–‹ç™¼(fÄ)平臺(tái)å‰åå
- 云å—å°ç¨‹åºé–‹ç™¼(fÄ)å…¬å¸æŽ¨è–¦
- 云å—ç¶²(wÇŽng)站建è¨(shè)百度官方
- å°ç¨‹åºåˆ¶ä½œ
- 釿…¶ç¶²(wÇŽng)站建è¨(shè)å…¬å¸
- 云å—ç¶²(wÇŽng)站建è¨(shè)優(yÅu)化
- 昆明å°ç¨‹åºå®šåˆ¶é–‹ç™¼(fÄ)
- å°ç¨‹åºé–‹ç™¼(fÄ)å…¬å¸
- ç¶²(wÇŽng)站排å優(yÅu)化
- æ—¥æ·çµ„ä»¶
- å°ç¨‹åº
- 云å—å°ç¨‹åºé–‹ç™¼(fÄ)
- 快排推廣
- 云å—å°ç¨‹åºå…¬å¸
- 曲é–å°ç¨‹åºé–‹ç™¼(fÄ)
- 云å—å°ç¨‹åºåˆ¶ä½œ
- 云å—ç¶²(wÇŽng)站建è¨(shè)百度
- 手機(jÄ«)ç¶²(wÇŽng)站建è¨(shè)
- ä¿éšª(xiÇŽn)ç¶²(wÇŽng)站建è¨(shè)å…¬å¸
- 云å—å°ç¨‹åºé–‹ç™¼(fÄ)制作公å¸
- 商標(biÄo)
- 云å—è¡›(wèi)視å°ç¨‹åº
- ç¶²(wÇŽng)站建è¨(shè)哪家強(qiáng)
- 昆明å°ç¨‹åºå…¬å¸