#!/bin/bashOnce you have this the directory on your path where you keep your scripts: perhaps ~/scripts:
export p=`pwd`
export pc=`cygpath -w $p/$1`
explorer.exe /root,$pc &
expl.sh
expl.sh some/sub/directory
#!/bin/bashOnce you have this the directory on your path where you keep your scripts: perhaps ~/scripts:
export p=`pwd`
export pc=`cygpath -w $p/$1`
explorer.exe /root,$pc &
** Unable to load Mozilla for hosted mode **Thankfully, this was the first hit on by search. Thank you
java.lang.UnsatisfiedLinkError: /home/user/projects/gwt-linux-1.5.3
/mozilla-1.7.12/libxpcom.so: libstdc++.so.5:
PersonComposite extends LinearLayout the default behavior was that my java class now had one child, the LinearLayout that is the root of the XML. This meant that each use of <my.app.PersonComposite ...> in other view XML would never apply configuration to the Linearlayout that has any effect.So any attempts to use the component like this would never change the orientation of the two nested TextView Components because the configuration was applied to the outer LinearLayout:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout >
<LinearLayout >
<TextView .../>
<TextView .../>
</LinearLayout>
</LinearLayout>
Solve this problem by using <merge> as the root element. And make sure you invoke LayoutInflater:<my.app.PersonComposite
android:id="@+id/person"
android:orientation="vertical"
/>
Now the person_composite.xml looks something like this:
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View inflatedView = inflater.inflate(R.layout.person_composite, this);
You can see how this works by getting the android source from git and looking at the source code for the<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<TextView .../>
<TextView .../>
</merge>
LayoutInflater.inflate method. then search that same source tree for an xml that uses <merge> as the root element. You'll find more than one.
public void testPersonTakesRoundTripThroughParcel() throws Exception {
Person testPerson = new Person();
ParcelablePerson testObject = new ParcelablePerson(testPerson);
Parcel parcel = Parcel.obtain();
testObject.writeToParcel(parcel, 0);
//done writing, now reset parcel for reading
parcel.setDataPosition(0);
//finish round trip
ParcelablePerson createFromParcel = ParcelablePerson.CREATOR.createFromParcel(parcel);
assertEquals(testPerson, createFromParcel.getPerson());
}
public class Person {
...
}
public class ParcelablePerson implements Parcelable {
private Person person;
public ParcelablePerson(Person person) {
this.person = person;
}
public Person getPerson() {
return person;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
//call dest.write... methods
}
public static final Creator CREATOR = new Creator() {
@Override
public ParcelablePerson createFromParcel(Parcel source) {
return null;
}
@Override
public ParcelablePerson[] newArray(int size) {
return null;
}};
}