發表文章

目前顯示的是 9月, 2015的文章

Html Navigation Bar Design in HTML5 and pre-HTML5 | HTML導覽列設計

圖片
The <nav> tag is new in HTML5, so we can create it as below: <nav>      <a href="#">Nav Link 1-1</a>      <a href="#">Nav Link 1-2</a>     <a href="#">Nav Link 1-3</a> </nav> But, if you want to display the Navigation Bar before HTML5(like HTML4.01, ). In the other words, you must display one in a lower version of browser. Try the way as below, work with CSS: .nav2 ul {      list-style-type: none;      margin: 0;      padding: 0;      overflow: hidden; }  .nav2 li {      display: inline;      float: left; }  .nav2 a {      text-align: center;      display: block;      width: 90px;  } then construct a <ul>+<li> list: <div class="nav2">      <ul>          <li><a href="#">Nav Link 2-1</a></li>          <li><a href="#">Nav Link 2-2</a></li>           <li><

超實用! 網站、Android、iOS各種default icon設計圖 - open source 可下載推薦網站

以下的網站,是我個人極為推薦的open source icon提供網站: 1. https://icons8.com/web-app/new-icons/all    -    心目中的第一名。 2. https://www.google.com/design/icons/index.html   -  著重GOOGLE全系列。 3. http://www.icons4android.com/    -    著重Android。 提供各種作業系統的icon尺寸、顏色、檔案格式的客製化設定提供下載。

The Best For Deleting Multiple Selected Items In ListView | Android

圖片
if developer want to have the selected effect(as bright color on when the item is selected), I refer to use both of  setActivated(true) and  setClickable(true) as below: ..... mScanList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE ); mScanList.setAdapter(ListAdapter); mScanList. setClickable(true) ; mScanList. setActivated(true) ; Finally, the xml file should look like below : <selector xmlns:android="http://schemas.android.com/apk/res/android"     android:enterFadeDuration="@android:integer/config_shortAnimTime"     android:exitFadeDuration="@android:integer/config_shortAnimTime" >              .....      <item android:drawable="...." android: state_activated ="true"/>       <item android:drawable="...." android: state_selected ="true"/>        ..... </selector> p.s. why  state_activated and   state_selected appear here at the same time? Because status_selected is for ol