Tab not taking full width on Tablet device [Using android.support.design.widget.TabLayout]

A “simpler” answer borrowed from Kaizie would just be adding app:tabMaxWidth=”0dp” in your TabLayout xml: <android.support.design.widget.TabLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” app:tabMaxWidth=”0dp” app:tabGravity=”fill” app:tabMode=”fixed” />

Open multiple links in Chrome at once as new tabs

You can do this in vanilla JavaScript: <html> <head> <script type=”text/javascript”> function open_win() { window.open(“http://www.java2s.com/”) window.open(“http://www.java2s.com/”) } </script> </head> <body> <form> <input type=button value=”Open Windows” onclick=”open_win()”> </form> </body> </html> Here is a more Chrome-specific implementation (if popup blockers are giving you difficulty): var linkArray = []; // your links for (var i = 0; i … Read more

How can I align text in columns using Console.WriteLine?

Try this Console.WriteLine(“{0,10}{1,10}{2,10}{3,10}{4,10}”, customer[DisplayPos], sales_figures[DisplayPos], fee_payable[DisplayPos], seventy_percent_value, thirty_percent_value); where the first number inside the curly brackets is the index and the second is the alignment. The sign of the second number indicates if the string should be left or right aligned. Use negative numbers for left alignment. Or look at http://msdn.microsoft.com/en-us/library/aa331875(v=vs.71).aspx